package pt.isel.pdm.ouryamba;

import java.util.TreeMap;
import winterwell.jtwitter.Twitter.Status;

public class Post extends TreeMap<String, Object>
{
    private static final long serialVersionUID = 4614079877383276485L;
    
    public Post(Status status)
    {
	    put(DbStatusContract.ID, status.id + General.EMPTY_STRING);
	    put(DbStatusContract.MESSAGE, status.text.length() > 44 ? status.text.substring(0, 40) : status);
	    put(DbStatusContract.USER_NAME, status.user.screenName);
	    put(DbStatusContract.CREATED_AT, status.createdAt.toString());
    }

}